using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content.Pipeline;
using Microsoft.Xna.Framework.Content.Pipeline.Graphics;
using System.Xml;
using System.Xml.Linq;
using System.IO;

namespace EnginePipeline
{
    [ContentImporter(".xml", DisplayName = "Xml Importer")]
    public class EngineXmlImporter : ContentImporter<XmlDocument>
	{
		public override XmlDocument Import(string fileName, ContentImporterContext context)
		{
            XmlDocument document = new XmlDocument();

            using (FileStream fileStream = new FileStream(fileName, FileMode.Open))
            {
                document.Load(fileStream);
            }

            return document;
		}
	}
}
